package day01.text01;

//创建MyThread继承Thread类
public class MyThread extends Thread {
    @Override
    public void run() {
        //重新run()方法循环20次
        for (int i = 1; i <= 20; i++) {
            System.out.println(MyThread.currentThread().getName()+"线程,执行第"+i+"次");
        }
    }
}
